package com.blog.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户相关的实体类
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
@ApiModel("用户实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    private Integer uid;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("email")
    private String email;

    @ApiModelProperty("主页地址")
    private String homeUrl;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("用户注册时的GMT unix时间戳")
    private Date creatTime;

    @ApiModelProperty("最后活动时间")
    private Date lastActivateTime;

    @ApiModelProperty("上次登录最后活跃时间")
    private Date lastLoggingTime;

    @ApiModelProperty("用户组")
    private String groupName;
}
